import request from '@/request/request.js'

//管理员查询教师列表
export function adminTeacherList(data){
    return request({
        url:'/admin/teacher/getTeacherList',
        method:'post',
        data
    })
}


//管理员查询班级列表
export function adminClassList(){
    return request({
        url:'/admin/teacher/getClassList',
        method:'post'
    })
}
//管理员新增讲师
export function adminTeacherAdd(data){
    return request({
        url:'/admin/teacher/addTeacher',
        method:'post',
        data
    })
}
//讲师信息回显
export function adminTeacherById(uid){
    return request({
        url:'/admin/teacher/findOneTeacher/'+uid,
        method:'post'
    })
}
//管理员修改讲师
export function adminTeacherUpdate(data){
    return request({
        url:'/admin/teacher/updateTeacher',
        method:'post',
        data
    })
}
//管理员禁用讲师
export function adminTeacherStatus(uid){
    return request({
        url:'/admin/teacher/disableTeacher/'+uid,
        method:'post'
    })
}
//管理员删除讲师
export function adminTeacherDelete(uid){
    return request({
        url:'/admin/teacher/deleteTeacher/'+uid,
        method:'post'
    })
}
//管理员重置密码
export function adminTeacherPassword(uid){
    return request({
        url:'/admin/teacher/resetPassword/'+uid,
        method:'get'
    })
}

//管理员导出讲师数据
export function exportOrder(){
    return request({
        url:'/admin/teacher/exportFile',
        method:'get',
        responseType:'blob'
    })
}